Package-level declarations

Types

Link copied to clipboard

One picked feature from a batch-table tile. PickedObject.userObject when batch picking is active; the surrounding PickedObject still carries the world-space hit.

Link copied to clipboard
class DracoPointCloud(val positions: FloatArray, val colors: FloatArray? = null, val positionsCount: Int = positions.size / 3, val colorsCount: Int = (colors?.size ?: 0) / 4)

Decoded point cloud. positions / colors may be pool-backed and longer than the valid span — readers must respect positionsCount / colorsCount (in points).

Link copied to clipboard

Pluggable codec for the 3DTILES_draco_point_compression PNTS extension. Wired in by the worldwind-formats-gltf-draco module's installDracoDecoder(), which shares its native bridge with the glTF mesh path. Implementations must be thread-safe.

Link copied to clipboard

Process-level registry of 3D-Tiles-specific pluggable extensions. Apps wire concrete implementations once at startup; the engine reads the registry from the streaming + render hot path without per-layer plumbing.

Link copied to clipboard
open class Ogc3dTilesLayer(val source: TilesetSource, displayName: String? = source.displayName, blobStore: BlobStore = NoOpBlobStore, fetchConcurrency: Int = 8, byteSource: TileByteSource = HttpTileByteSource()) : AbstractLayer

OGC / Cesium 3D Tiles layer. Streams b3dm / i3dm / cmpt / pnts / glTF / Gaussian-splat payloads from a self-hosted endpoint, Cesium Ion, Google Photorealistic, or any custom-headers / Bearer-authenticated endpoint via TilesetSource.authProvider.

Link copied to clipboard
class SlpkLayer : Ogc3dTilesLayer

Renders an ArcGIS SLPK (I3S Scene Layer Package) opened in place from a local file — no extraction or copy, so 5-15 GB packages work on device (see ZipFileArchive).

Link copied to clipboard
data class TilesetSource(val rootUri: String, val authProvider: TilesetAuthProvider = NoAuthProvider, val displayName: String = rootUri)

Identifies a 3D Tiles dataset: the absolute URI of its root document (tileset.json for a self-hosted set; an asset-endpoint URL for Cesium Ion; root.json?key=... for Google Photorealistic 3D Tiles) and the TilesetAuthProvider used to authenticate every fetch the layer makes on its behalf.

Functions

Link copied to clipboard
fun openArchived3dTilesLayer(file: File, rootEntry: String = "tileset.json", displayName: String = file.name, blobStore: BlobStore = NoOpBlobStore, fetchConcurrency: Int = 8): Ogc3dTilesLayer

Open a Cesium 3D Tiles Archive in place from a local file — a single-file package of an ordinary 3D Tiles dataset. Both container forms are auto-detected by magic bytes: .3tz (a ZIP, via ZipFileArchive) and .3dtiles (a SQLite media(key, content) DB, via Sqlite3dTilesArchive).

fun openArchived3dTilesLayer(path: String, rootEntry: String = "tileset.json", displayName: String? = null, blobStore: BlobStore = NoOpBlobStore, fetchConcurrency: Int = 8): Ogc3dTilesLayer

Convenience overload accepting a filesystem path string.

Link copied to clipboard
suspend fun ContentManager.openOgc3dTilesLayer(contentKey: String, authOverride: TilesetAuthProvider? = null, evictionPolicy: CachePolicy = CachePolicy.UNBOUNDED): Ogc3dTilesLayer?

Reopen an Ogc3dTilesLayer from a ContentManager entry registered by an earlier openBlobStore(...) + registerWebService(...) pair. Reads the persisted earth.worldwind.layer.cache.WebServiceInfo (root URI in .address, auth-provider class name in .layerName, credentials JSON in .metadata) and rebuilds the layer end-to-end so the caller only has to do engine.layers.addLayer(layer).